package com.kgc.ljp.server.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 背包类
 */
public class Bag implements Serializable {
    /**
     * 所属用户
     */
    private String userId;
    /**
     * 拥有的宠物集合
     */
    private List<HeroClass> heroes;

    /**
     * 无参构造
     * @param user
     * @param heroList
     */

    /**
     * 有参构造
     * @param userId
     * @param heroes
     */
    public Bag(String userId, List<HeroClass> heroes) {
        this.userId = userId;
        this.heroes = heroes;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public List<HeroClass> getHeroes() {
        return heroes;
    }

    public void setHeroes(List<HeroClass> heroes) {
        this.heroes = heroes;
    }
}
